import { Injectable } from '@nestjs/common';
import { CreateLogDto } from './dto/create-log.dto';

@Injectable()
export class LogsService {
  findByPage(createLogDto: CreateLogDto) {
    return [];
  }

  visitStats() {
    return {
      todayUvCount: 39,
      totalUvCount: 9661,
      uvGrowthRate: 4.57,
      todayPvCount: 225,
      totalPvCount: 148304,
      pvGrowthRate: 3.02,
    };
  }

  visitTrend() {
    return {
      dates: [
        '2025-03-16',
        '2025-03-17',
        '2025-03-18',
        '2025-03-19',
        '2025-03-20',
        '2025-03-21',
        '2025-03-22',
      ],
      pvList: [2006, 5274, 6286, 6227, 5216, 4595, 225],
      ipList: [187, 544, 621, 607, 518, 531, 39],
    };
  }
}
